#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>

int main() {
    char arr[10000];
    char t;
    int len;
    gets(arr);
    len = (int)strlen(arr) - 1;
    int left = 0, right = len;
    while (left < right)
    {
        t = arr[left];
        arr[left] = arr[right];
        arr[right] = t;
        left++;
        right--;
    }
    printf("%s", arr);
    return 0;
}